package cn.i7baozh.boot.learn.configuration;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.io.Serializable;
import java.util.List;

/**
 * @author zhangbaoqi532
 * @date 2025/1/8
 */
@ConfigurationProperties("my.config")
@Data
public class MyConfigurationProperties implements Serializable {

    private String name;

    private boolean use;

    private ConfigSecXXX sec;

    @Data
    public static class ConfigSecXXX{
        private Integer num;
        private List<String> secs;
    }
}
